package com.shop.util;

import com.shop.constant.Meta;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class GetMap {

    public static Map<String,Object> getMap(int code, String msg) {
        Meta m = new Meta();
        m.setCode(code);
        m.setMsg(msg);
        Map<String,Object> map = new LinkedHashMap<>();
        map.put("meta",m);
        return map;
    }
}
